package com.dyp.filterdemo.web.rest;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@RestController
@RequestMapping(value = "/test")
public class TestResource {
    @GetMapping("/filter")
    public String hello(HttpServletRequest request) {
        String keyValue = request.getParameter("timestamp");
        return "hello world" + keyValue;
    }
}
